//
//  MXDropdownMenu.h
//  MXの衣柜
//
//  Created by 马霄 on 15/8/19.
//  Copyright (c) 2015年 霄 马. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MXDropdownMenu;

@protocol MXDropdownMenuDelegate <NSObject>

- (void)dropdownMenuDidDismiss:(MXDropdownMenu *)menu;
- (void)dropdownMenuDidShow:(MXDropdownMenu *)menu;

@end

@interface MXDropdownMenu : UIView
@property (nonatomic, retain) id<MXDropdownMenuDelegate>delegate;


+ (instancetype)menu;

/**
 * 显示
 */
- (void)showFrom:(UIView *)from;

/**
 * 销毁
 */
- (void)dismiss;
/**
 * 内容
 */
@property (nonatomic, strong) UIView *content;


/**
 * 内容控制器
 */
@property (nonatomic, strong) UIViewController *contentController;
@end
